﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" CodeFile="changepassword.aspx.cs" Inherits="Admin_changepassword" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script type="text/javascript">
        $(function () {
            dark.form({
                appendTo: $(".form2"),
                title: "修改密码",
                data: {},
                width: 900,
                items: [
				{ id: "curPasswords", label: "当前密码", type: "textbox", required: true },
				{ id: "newPasswords1", label: "新密码", type: "textbox", required: true },
                { id: "submit", label: "修改", type: "submit", iconCls: "icon-save", url: "",
                    onClick: function (isValid, formData) {
                        dark.dialog.openload();
                        DarkCRM.Admin.UpdatePassword(formData.curPasswords, formData.newPasswords1, { success: function (result) {
                            dark.dialog.closeload();
                            if (result.ErrorCode == 0) {
                                alert(result.Description);
                                parent.location.href = "logout.aspx";
                            } else {
                                alert("修改失败：" + result.Description);
                            }
                        }
                        });
                    },
                    success: function (isValid, data) {
                        success(data);
                    },
                    onLoadError: function () {
                    }
                }
                ]
            });


        });


    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="form2">
    </div>
</asp:Content>

